class CreatePhotos < ActiveRecord::Migration
  def self.up
    create_table :photos do |t|
      t.column :lock_version, :integer,   :null => false
      t.column :description,  :string,    :null => false, :limit => 500
      t.column :image,        :binary,    :null => false
      t.column :created_at,   :timestamp, :null => false
      t.column :updated_at,   :timestamp, :null => false
    end
  end

  def self.down
    drop_table :photos
  end
end
